Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 20 - QuickDraw 3D Mathematical Utilities / QuickDraw 3D Mathematical Utilities Reference
QuickDraw 3D Mathematical Utilities / Scaling Vectors


Q3Vector2D_Scale

You can use the Q3Vector2D_Scale function to scale a two-dimensional vector.

TQ3Vector2D *Q3Vector2D_Scale (
const TQ3Vector2D *vector2D, 
float scalar, 
TQ3Vector2D *result);
vector2D
A two-dimensional vector.
scalar
A floating-point number.
result
On exit, a two-dimensional vector that is the result of multiplying each of the components of vector2D by the value of the scalar parameter.
DESCRIPTION
The Q3Vector2D_Scale function returns, as its function result and in the result parameter, the two-dimensional vector that is the result of multiplying each of the components of the vector vector2D by the value of the scalar parameter. Note that on entry the result parameter can be the same as the vector2D parameter.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996